package com.elastic.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author zyj
 * @description
 * @date 2019/4/28 10:18
 **/
@Configuration
@PropertySource("classpath:es-configure.properties")
public class CommonConfig {
    @Value("${elasticsearch.ip}")
    private String[] elasticsearchIp;

    public String[] getElasticsearchIp() {
        return elasticsearchIp;
    }

    public void setElasticsearchIp(String[] elasticsearchIp) {
        this.elasticsearchIp = elasticsearchIp;
    }
}
